package com.eduhzy.ttw.commonsdk.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * @author xubo
 * @date 2018/7/20 10:07
 */
public class HomeSection<T>  implements MultiItemEntity{
    public static final int SYSMSG = 731;
    public static final int VERMSG = 739;
    private int img;
    private String name;
    private int itemType;
    private boolean header;
    private T t;
    private String router;
    private int MessageType;

    public int getMessageType() {
        return MessageType;
    }

    public HomeSection setMessageType(int messageType) {
        MessageType = messageType;
        return this;
    }

    public String getRouter() {
        return router;
    }

    public HomeSection setRouter(String router) {
        this.router = router;
        return this;
    }

    public HomeSection(T data) {
        setT(data);
    }

    public HomeSection setItemType(int itemType) {
        this.itemType = itemType;
        return this;
    }

    public HomeSection(boolean isHeader, int img, String name) {
        setHeader(isHeader);
        setImg(img);
        setName(name);
    }

    public HomeSection() {
    }

    public void setHeader(boolean header) {
        this.header = header;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getImg() {
        return img;
    }

    public void setImg(int img) {
        this.img = img;
    }

    public boolean isHeader() {
        return header;
    }
    @Override
    public int getItemType() {
        return itemType;
    }
}
